package com.yds.bluetooth

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import com.yds.bluetooth.databinding.ActivityMainBinding

class MainActivity : AppCompatActivity() {
    private lateinit var mBinding: ActivityMainBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mBinding = DataBindingUtil.setContentView(this, R.layout.activity_main)
        mBinding.lifecycleOwner = this

        mBinding.mBtnClassicBlue.setOnClickListener {
            startActivity(Intent(this, ClassicBluetoothActivity::class.java))
        }

        mBinding.mBtnLowBlue.setOnClickListener {
            startActivity(Intent(this, LowPowerBluetoothActivity::class.java))
        }
    }
}